import request from '@/utils/request';

export async function getInspectTaskByPage (params: any) {
    return request('/api/device/getInspectTaskByPage', {
    method: 'POST',
    data: params,
  });
}



export async function addInspectTask (params: any) {
    return request('/api/device/addInspectTask', {
    method: 'POST',
    data: params,
  });
}

export async function updateInspectTask (params: any) {
    return request('/api/device/updateInspectTask', {
    method: 'POST',
    data: params,
  });
}

export async function delInspectTask (params: any) {
    return request('/api/device/delInspectTask', {
    method: 'POST',
    data: params,
  });
}


export async function exportInspectTask(params: any) {
    return request('/api/device/exportInspectTask', {
    method: 'POST',
    data: params,
    responseType: 'blob',
  });
}
export default { getInspectTaskByPage, addInspectTask, updateInspectTask, delInspectTask, exportInspectTask }
